﻿using System;

namespace HslCommunication.Core.IMessage
{
	/// <summary>
	/// 发那科机器人的网络消息类
	/// </summary>
	// Token: 0x02000153 RID: 339
	public class FanucRobotMessage : INetMessage
	{
		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.ProtocolHeadBytesLength" />
		// Token: 0x170005CB RID: 1483
		// (get) Token: 0x06001D0B RID: 7435 RVA: 0x0008CFAE File Offset: 0x0008B1AE
		public int ProtocolHeadBytesLength
		{
			get
			{
				return 56;
			}
		}

		/// <inheritdoc cref="M:HslCommunication.Core.IMessage.INetMessage.CheckHeadBytesLegal(System.Byte[])" />
		// Token: 0x06001D0C RID: 7436 RVA: 0x0008CD5E File Offset: 0x0008AF5E
		public bool CheckHeadBytesLegal(byte[] token)
		{
			return true;
		}

		/// <inheritdoc cref="M:HslCommunication.Core.IMessage.INetMessage.GetContentLengthByHeadBytes" />
		// Token: 0x06001D0D RID: 7437 RVA: 0x0008CFB2 File Offset: 0x0008B1B2
		public int GetContentLengthByHeadBytes()
		{
			return (int)BitConverter.ToUInt16(this.HeadBytes, 4);
		}

		/// <inheritdoc cref="M:HslCommunication.Core.IMessage.INetMessage.GetHeadBytesIdentity" />
		// Token: 0x06001D0E RID: 7438 RVA: 0x00047BE1 File Offset: 0x00045DE1
		public int GetHeadBytesIdentity()
		{
			return 0;
		}

		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.HeadBytes" />
		// Token: 0x170005CC RID: 1484
		// (get) Token: 0x06001D0F RID: 7439 RVA: 0x0008CFC0 File Offset: 0x0008B1C0
		// (set) Token: 0x06001D10 RID: 7440 RVA: 0x0008CFC8 File Offset: 0x0008B1C8
		public byte[] HeadBytes { get; set; }

		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.ContentBytes" />
		// Token: 0x170005CD RID: 1485
		// (get) Token: 0x06001D11 RID: 7441 RVA: 0x0008CFD1 File Offset: 0x0008B1D1
		// (set) Token: 0x06001D12 RID: 7442 RVA: 0x0008CFD9 File Offset: 0x0008B1D9
		public byte[] ContentBytes { get; set; }

		/// <inheritdoc cref="P:HslCommunication.Core.IMessage.INetMessage.SendBytes" />
		// Token: 0x170005CE RID: 1486
		// (get) Token: 0x06001D13 RID: 7443 RVA: 0x0008CFE2 File Offset: 0x0008B1E2
		// (set) Token: 0x06001D14 RID: 7444 RVA: 0x0008CFEA File Offset: 0x0008B1EA
		public byte[] SendBytes { get; set; }
	}
}
